<%@page import="RssEasy.DAL.Pagination"%>
<%@page import="Model.consultation.consultationList"%>
<%@page import="RssEasy.Core.CookieHelper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    CookieHelper cookie = new CookieHelper(request, response);
    if (cookie.Get("account") == null || cookie.Get("account") == "") {
        response.sendRedirect("/login/login.jsp");
    }
    consultationList ct = new consultationList(pageContext);
    ct.select();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>企企通-空间管理-资质管理</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="css/swfupload.css" rel="stylesheet" type="text/css"/>
        <link href="css/consultation.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <h1>资质管理</h1>
        <ol id="pro">
            <li class="greensy">上传新证书</li>
            <li>证书管理</li>
        </ol>
        <ul id="tagpic">
            <li  class="greensy">
                <form id="form"  method="post" class="consultation">
                    <div>
                        <h3>资质证书</h3>
                        <table>
                            <td class="tr w60">证书图片：</td>
                            <td id="inp">
                                <ul id="icourlwrap" class="swfuploadwrap">
                                    <li><div class="swfuploadimg"><div><img src="<% out.print(ct.get("certimg") != null ? "/upfile/" + ct.get("certimg") : "/img/white.gif");  %>"></div></div></li>
                                </ul>
                                <div>
                                    <span swfupload="icourlswf" config="{multimode:1,fileType: [['图形图像(*.jpg;*.png;*jpeg)','*.jpg;*.png;*jpeg']]}"></span>
                                    <br />
                                    请您提供清晰的图片，格式为JPEG，BMP，PNG，图片小于5M！
                                </div>
                                <input type="hidden" id="ico"  name="certimg" value="" />
                            </td>

                        </table>
                    </div>
                    <button type="button">保存</button>
                </form>
            </li>
            <li>
                <table id="bttable">
                    <thead>
                        <tr class="trstyle">
                            <td class="tdnone">证书图片</td>
                            <td class="tdnone">上传时间</td>
                            <td class="tdnone">操作</td></tr>
                    </thead>
                    <tbody id="participation">
                        <tr>
                            <td><img src="/upfile/<% out.print(ct.get("certimg"));%>" style="width: 150px;" alt=""/></td>
                            <td rssdate="<%=ct.get("uptimes")%>,yyyy-MM-dd"></td>
                            <td class="delete" value='<%ct.write("id");%>'>删除</td></tr>
                    </tbody>
                </table>
                <input type="hidden" id="searchpt"/>
                <div id="page">
                    <a href= "javascript:void(0);" id="first" onclick ="first()" sort="">首页</a>
                    <a href= "javascript:void(0);" id="previous" onclick ="previous()" sort="">上一页</a>
                    <a><b>1</b>/<b></b></a>
                    <a href= "javascript:void(0);" id="next" onclick ="next()" sort="">下一页</a>
                    <a href= "javascript:void(0);" id="last" onclick ="last()" sort="">尾页</a>
                    <a>跳转</a>
                    <input type="text" name="jump" value=""/>
                    <a href= "javascript:void(0);" id="jump" onclick ="jump()" sort="">确定</a>
                </div>
            </li>
        </ul>               
        <%@include file="/inc/js_all.html" %>
        <script src="js/consultation.js" type="text/javascript"></script>
        <script src="js/upload_c.js" type="text/javascript"></script>
    </body>
</html>
